package com.stormrage.entity.edu.view;

import java.io.Serializable;

public class EduModuleCourse implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -934902731039234704L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer moduleId;

	private Integer courseId;

	// ------------------------------- Fields -------------------------------

	public EduModuleCourse() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getModuleId() {
		return moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	// ------------------------------- Fields -------------------------------

	public static EduModuleCourse instance(Integer moduleId, Integer courseId) {
		EduModuleCourse entity = new EduModuleCourse();
		entity.setModuleId(moduleId);
		entity.setCourseId(courseId);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " moduleId - " + moduleId + " courseId - " + courseId;
	}

}
